export default function (files) {
  return Object.keys(files).map(file => {
    const template = files[file].default;
    return {
      path: template.path,
      name: template.name,
      component: template,
      meta: {
        locale: template.locale,
        requiresAuth: true,
        permissions: template.permissions || [],
      }
    };
  });
}